package com.hehao.java_basic.proxy.jdk.static_;


import com.hehao.java_basic.proxy.jdk.UsbSandiFactory;
import com.hehao.java_basic.proxy.jdk.UsbSell;

/**
 * @author Damon
 * @date 2022/10/20
 */
public class SandiTaoBao implements UsbSell {
    @Override
    public float usbSell(int amount) {
        UsbSandiFactory usbSandiFactory = new UsbSandiFactory();
        //1.调用目标类中方法
        float price = usbSandiFactory.usbSell(amount);
        //2.方法增强
        float taoBaoPrice = price * 2;
        return taoBaoPrice;

    }
}
